package o;

import com.huawei.appgallery.productpurchase.api.ProductDetailBean;
import com.huawei.appgallery.productpurchase.impl.server.ProductOrderRecordsResBean;
import com.huawei.appgallery.productpurchase.impl.server.ProductOrderRecordsResBean.ProductOrderInfo;
import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.listener.IServerCallBack;
import java.util.ArrayList;
import java.util.List;

public class crs {
    public static void ˋ(int i, int i2, final crm o_crm) {
        crf.ˎ.ˋ("ProductPurchaseRecordManager", "The process of requesting records starts.");
        cvt o_csg = new csg();
        o_csg.ˋ(i);
        o_csg.ˎ(i2);
        cfw.ˎ(o_csg, new IServerCallBack() {
            public void prePostResult(BaseRequest o_cvu, ResponseBean responseBean) {
            }

            public void notifyResult(BaseRequest o_cvu, ResponseBean responseBean) {
                List arrayList = new ArrayList();
                if (responseBean.getResponseCode() == 0 && responseBean.getRtnCode_() == 0) {
                    ProductOrderRecordsResBean productOrderRecordsResBean = (ProductOrderRecordsResBean) responseBean;
                    List<ProductOrderInfo> ˊ = productOrderRecordsResBean.ˊ();
                    if (ˊ != null) {
                        for (ProductOrderInfo productOrderInfo : ˊ) {
                            ProductDetailBean productDetailBean = new ProductDetailBean();
                            productDetailBean.ॱͺ(productOrderInfo.ˋ());
                            productDetailBean.ᐝᐝ(productOrderInfo.ˏ());
                            productDetailBean.ˑ(productOrderInfo.ॱ());
                            productDetailBean.ॱʼ(productOrderInfo.ˊ());
                            productDetailBean.ᐨ(productOrderInfo.ˎ());
                            productDetailBean.ᐧ(productOrderInfo.ॱॱ());
                            productDetailBean.ᐝˊ(productOrderInfo.ʽ());
                            productDetailBean.ˋ(productOrderInfo.ʻ());
                            productDetailBean.ˏ(productOrderInfo.ᐝ());
                            productDetailBean.ॱˊ(productOrderInfo.ʼ());
                            productDetailBean.ᐝˋ(productOrderInfo.ॱˊ());
                            arrayList.add(productDetailBean);
                        }
                    }
                    o_crm.ˎ(responseBean.getResponseCode(), responseBean.getRtnCode_(), productOrderRecordsResBean.ˏ(), arrayList);
                    return;
                }
                o_crm.ˎ(responseBean.getResponseCode(), responseBean.getRtnCode_(), 0, arrayList);
            }
        });
    }
}
